import os
from google.appengine.ext.webapp import util
import django.core.handlers.wsgi

from django.conf import settings
settings._target = None

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

def main():
    application = django.core.handlers.wsgi.WSGIHandler()

    util.run_wsgi_app(application)
    
if __name__ == '__main__':
    main()